package com.uinnova.product.eam.service;

import com.uinnova.product.eam.model.es.SysApiKeyInfo;

import java.util.List;

public interface SysApiKeyService {

    /**
     * 查询系统apiKey列表
     * @return
     */
    List<SysApiKeyInfo> list();

    /**
     * 新建/更新 系统apiKey
     * @param sysApiKeyInfo
     * @return
     */
    SysApiKeyInfo saveOrUpdate(SysApiKeyInfo sysApiKeyInfo);

    /**
     * 生成apiKey
     * @param sysApiKeyInfo
     * @return
     */
    SysApiKeyInfo createApiKey(SysApiKeyInfo sysApiKeyInfo);
}
